package com.xwm93up.basic.lock;

import org.openjdk.jol.info.ClassLayout;

/**
 * @Description: 并发编程中的锁
 * @Author: xwm93up
 * @Since: 2022/2/22 22:00
 */
public class T01 {
    public static void main(String[] args) {
        Object o = new Object();

        System.out.println(ClassLayout.parseInstance(o).toPrintable());

        synchronized (o) {
            System.out.println(ClassLayout.parseInstance(o).toPrintable());
        }
    }
}
